import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { knowledge, system, aiqa } from '@/api/apiModulesType';


// 获取企业模板列表
export function getEnterpriseTemplateList(params: any): AxiosPromise<any> {
  return request({
    url: `/${knowledge}/api/enterpriseFolderTree`,
    method: 'get',
    params,
  });
}

// 加入到企业知识库
export function joinEnterpriseTemplate(params: any): AxiosPromise<any> {
  return request({
    url: `/${knowledge}/api/enterpriseFolderTree/createByEnterpriseId`,
    method: 'get',
    params,
  });
}

// 查询知识库文件结构
export function getKnowledgeTree(params: any): AxiosPromise<any> {
  return request({
    url: `/${knowledge}/api/enterpriseFolderTree/selectNext`,
    method: 'get',
    params,
  });
}